package com.bestsoft.flow.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.bestsoft.flow.mapper.HtxsmlMapper;
import com.bestsoft.flow.domain.Htxsml;
import com.bestsoft.flow.service.IHtxsmlService;

/**
 * 恒泰销售毛利查询Service业务层处理
 * 
 * @author 崔健
 * @date 2023-10-10
 */
@Service
public class HtxsmlServiceImpl implements IHtxsmlService 
{
    @Autowired
    private HtxsmlMapper htxsmlMapper;

    /**
     * 查询恒泰销售毛利查询
     * 
     * @param xh 恒泰销售毛利查询主键
     * @return 恒泰销售毛利查询
     */
    @Override
    public Htxsml selectHtxsmlByXh(Long xh)
    {
        return htxsmlMapper.selectHtxsmlByXh(xh);
    }

    /**
     * 查询恒泰销售毛利查询列表
     * 
     * @param htxsml 恒泰销售毛利查询
     * @return 恒泰销售毛利查询
     */
    @Override
    public List<Htxsml> selectHtxsmlList(Htxsml htxsml)
    {
        return htxsmlMapper.selectHtxsmlList(htxsml);
    }

    /**
     * 新增恒泰销售毛利查询
     * 
     * @param htxsml 恒泰销售毛利查询
     * @return 结果
     */
    @Override
    public int insertHtxsml(Htxsml htxsml)
    {
        return htxsmlMapper.insertHtxsml(htxsml);
    }

    /**
     * 修改恒泰销售毛利查询
     * 
     * @param htxsml 恒泰销售毛利查询
     * @return 结果
     */
    @Override
    public int updateHtxsml(Htxsml htxsml)
    {
        return htxsmlMapper.updateHtxsml(htxsml);
    }

    /**
     * 批量删除恒泰销售毛利查询
     * 
     * @param xhs 需要删除的恒泰销售毛利查询主键
     * @return 结果
     */
    @Override
    public int deleteHtxsmlByXhs(Long[] xhs)
    {
        return htxsmlMapper.deleteHtxsmlByXhs(xhs);
    }

    /**
     * 删除恒泰销售毛利查询信息
     * 
     * @param xh 恒泰销售毛利查询主键
     * @return 结果
     */
    @Override
    public int deleteHtxsmlByXh(Long xh)
    {
        return htxsmlMapper.deleteHtxsmlByXh(xh);
    }
}
